package com.cn.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by chenyuncong on 2019/3/27.
 */
@Table(name = "device_error")
@Data
public class DeviceError {
    @Id
    private Integer id;

    //mac地址
    @Column(name = "mac")
    private String mac;

    //公司
    @Column(name = "company_id")
    private Integer companyId;

    //工厂
    @Column(name = "factory_id")
    private Integer factoryId;

    //生产线
    @Column(name = "production_line_id")
    private Integer productionLineId;

    //故障地址位
    @Column(name = "error_address")
    private String errorAddress;

    //故障描述
    @Column(name = "error_info")
    private String errorInfo;

    //故障图片
    @Column(name="error_img")
    private String errorImg;

    //机器类型(1:98p,2:DW,3:OV)
    @Column(name = "machine_type")
    private Integer machineType;

    //机器当前所属状态(3:正常运行,2:正常停机,1:故障停机)
    @Column(name = "mac_run_status")
    private Integer macRunStatus;

    //时间
    @Column(name="today")
    private Integer today;

    //故障时间
    @Column(name="the_time")
    private Date theTime;

    //录入时间
    @Column(name = "reg_date")
    private Date regDate;

    //关联记录ID
    @Column(name = "object_id")
    private Integer objectId;

    @Column(name = "uuid")
    private String uuid;

    //英文描述
    @Column(name = "error_info_english")
    private String errorInfoEnglish;
}


